package com.ecoolex.discount.sales.core.mapper;

import com.ecoolex.discount.sales.entity.PaymentOrder;
import com.ecoolex.discount.sales.entity.PaymentOrderExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface PaymentOrderMapper {
    long countByExample(PaymentOrderExample example);

    int deleteByExample(PaymentOrderExample example);

    int deleteByPrimaryKey(Integer paymentOrderId);

    int insert(PaymentOrder record);

    int insertSelective(@Param("record") PaymentOrder record, @Param("selective") PaymentOrder.Column ... selective);

    PaymentOrder selectOneByExample(PaymentOrderExample example);

    List<PaymentOrder> selectByExample(PaymentOrderExample example);

    PaymentOrder selectByPrimaryKey(Integer paymentOrderId);

    PaymentOrder selectByPrimaryKeyWithLogicalDelete(@Param("paymentOrderId") Integer paymentOrderId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") PaymentOrder record, @Param("example") PaymentOrderExample example, @Param("selective") PaymentOrder.Column ... selective);

    int updateByExample(@Param("record") PaymentOrder record, @Param("example") PaymentOrderExample example);

    int updateByPrimaryKeySelective(@Param("record") PaymentOrder record, @Param("selective") PaymentOrder.Column ... selective);

    int updateByPrimaryKey(PaymentOrder record);

    int batchInsert(@Param("list") List<PaymentOrder> list);

    int batchInsertSelective(@Param("list") List<PaymentOrder> list, @Param("selective") PaymentOrder.Column ... selective);

    int logicalDeleteByExample(@Param("example") PaymentOrderExample example);

    int logicalDeleteByPrimaryKey(Integer paymentOrderId);
}